<template>
	<ot-table  textAlign="center" titleTextAlign="center" :tableData="tableData" :columns="tableColumns">
	</ot-table>
</template>

<script>
	export default {
		data() {
			return {
				tableData: [],
				tableColumns: [
						{
							title: "岗位名称",
							key: "relationPostName",
							width: 250
						},
						{
							title: "姓名",
							key: "relationUserName",
							width: 200
						},
						{
							title: "上级岗位名称",
							key: "relationPostParentName",
							width: 300
						}
					]
				}
			},
			onLoad(options){
				let _that = this
				if(options.relationList){
					_that.tableData = JSON.parse(options.relationList)
				}
				if(options.showList){
					_that.tableData = JSON.parse(options.showList)
				}
			}
		}
</script>

<style>
</style>
